package com.qcby.demo.proxyaop.interceptor;

import java.lang.reflect.Method;

/**
 * 拦截器接口
 */
public interface Interceptor {


    default boolean preHandle(Object proxy, Object target, Method method, Object[] args){
        return true;
    }

    default void postHandle(Object proxy, Object target, Method method,Object[] args){

    }

    default void afterCompletion(Object proxy, Object target, Method method,Object[] args){

    }
}
